<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Admin\Model;
use Think\Model;
use Think\Model\RelationModel;

/**
 * 分类模型
 * @author 麦当苗儿 <zuojiazi@vip.qq.com>
 */
class TicketOrderModel extends RelationModel{

    protected $_link = array(
     'Redeemcode'=>array(
        'mapping_type'      => self::HAS_MANY,
        'class_name'        => 'ticket_redeem_code',
        'foreign_key'       => 'ticket_order_id',
        'condition'         => 'status=1'
        )
    );

}